home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_emacs.idb / usr / freeware / share / emacs / 19.34 / lisp / reposition.elc.z / reposition.elc
Emacs Compiled Lisp  |  1998-10-28  |  2.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 65 72 69 6b 40 6e 61 |piled by| erik@na|
|00000020| 67 67 75 6d 2e 6e 6f 20 | 6f 6e 20 53 75 6e 20 4a |ggum.no |on Sun J|
|00000030| 61 6e 20 31 34 20 30 36 | 3a 32 39 3a 34 32 20 31 |an 14 06|:29:42 1|
|00000040| 39 39 36 0a 3b 3b 3b 20 | 66 72 6f 6d 20 66 69 6c |996.;;; |from fil|
|00000050| 65 20 2f 67 64 2f 67 6e | 75 2f 65 6d 61 63 73 2f |e /gd/gn|u/emacs/|
|00000060| 31 39 2e 30 2f 6c 69 73 | 70 2f 72 65 70 6f 73 69 |19.0/lis|p/reposi|
|00000070| 74 69 6f 6e 2e 65 6c 0a | 3b 3b 3b 20 65 6d 61 63 |tion.el.|;;; emac|
|00000080| 73 20 76 65 72 73 69 6f | 6e 20 31 39 2e 33 30 2e |s versio|n 19.30.|
|00000090| 37 30 2e 36 2e 0a 3b 3b | 3b 20 62 79 74 65 63 6f |70.6..;;|; byteco|
|000000a0| 6d 70 20 76 65 72 73 69 | 6f 6e 20 46 53 46 20 32 |mp versi|on FSF 2|
|000000b0| 2e 31 30 0a 3b 3b 3b 20 | 6f 70 74 69 6d 69 7a 61 |.10.;;; |optimiza|
|000000c0| 74 69 6f 6e 20 69 73 20 | 6f 6e 2e 0a 3b 3b 3b 20 |tion is |on..;;; |
|000000d0| 74 68 69 73 20 66 69 6c | 65 20 75 73 65 73 20 6f |this fil|e uses o|
|000000e0| 70 63 6f 64 65 73 20 77 | 68 69 63 68 20 64 6f 20 |pcodes w|hich do |
|000000f0| 6e 6f 74 20 65 78 69 73 | 74 20 69 6e 20 45 6d 61 |not exis|t in Ema|
|00000100| 63 73 20 31 38 2e 0a 0a | 28 69 66 20 28 61 6e 64 |cs 18...|(if (and|
|00000110| 20 28 62 6f 75 6e 64 70 | 20 27 65 6d 61 63 73 2d | (boundp| 'emacs-|
|00000120| 76 65 72 73 69 6f 6e 29 | 0a 09 20 28 6f 72 20 28 |version)|.. (or (|
|00000130| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 70 6f |and (bou|ndp 'epo|
|00000140| 63 68 3a 3a 76 65 72 73 | 69 6f 6e 29 20 65 70 6f |ch::vers|ion) epo|
|00000150| 63 68 3a 3a 76 65 72 73 | 69 6f 6e 29 0a 09 20 20 |ch::vers|ion).. |
|00000160| 20 20 20 28 73 74 72 69 | 6e 67 2d 6c 65 73 73 70 | (stri|ng-lessp|
|00000170| 20 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 20 22 | emacs-v|ersion "|
|00000180| 31 39 2e 32 39 22 29 29 | 29 0a 20 20 20 20 28 65 |19.29"))|). (e|
|00000190| 72 72 6f 72 20 22 60 72 | 65 70 6f 73 69 74 69 6f |rror "`r|epositio|
|000001a0| 6e 2e 65 6c 27 20 77 61 | 73 20 63 6f 6d 70 69 6c |n.el' wa|s compil|
|000001b0| 65 64 20 66 6f 72 20 45 | 6d 61 63 73 20 31 39 2e |ed for E|macs 19.|
|000001c0| 32 39 20 6f 72 20 6c 61 | 74 65 72 22 29 29 0a 0a |29 or la|ter"))..|
|000001d0| 0a 23 40 31 30 35 38 20 | 4d 61 6b 65 20 74 68 65 |.#@1058 |Make the|
|000001e0| 20 63 75 72 72 65 6e 74 | 20 64 65 66 69 6e 69 74 | current| definit|
|000001f0| 69 6f 6e 20 61 6e 64 2f | 6f 72 20 63 6f 6d 6d 65 |ion and/|or comme|
|00000200| 6e 74 20 76 69 73 69 62 | 6c 65 2e 0a 46 75 72 74 |nt visib|le..Furt|
|00000210| 68 65 72 20 69 6e 76 6f | 63 61 74 69 6f 6e 73 20 |her invo|cations |
|00000220| 6d 6f 76 65 20 69 74 20 | 74 6f 20 74 68 65 20 74 |move it |to the t|
|00000230| 6f 70 20 6f 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |op of th|e window|
|00000240| 20 6f 72 20 74 6f 67 67 | 6c 65 20 74 68 65 0a 76 | or togg|le the.v|
|00000250| 69 73 69 62 69 6c 69 74 | 79 20 6f 66 20 63 6f 6d |isibilit|y of com|
|00000260| 6d 65 6e 74 73 20 74 68 | 61 74 20 70 72 65 63 65 |ments th|at prece|
|00000270| 64 65 20 69 74 2e 0a 20 | 20 50 6f 69 6e 74 20 69 |de it.. | Point i|
|00000280| 73 20 6c 65 66 74 20 75 | 6e 63 68 61 6e 67 65 64 |s left u|nchanged|
|00000290| 20 75 6e 6c 65 73 73 20 | 70 72 65 66 69 78 20 41 | unless |prefix A|
|000002a0| 52 47 20 69 73 20 73 75 | 70 70 6c 69 65 64 2e 0a |RG is su|pplied..|
|000002b0| 20 20 49 66 20 74 68 65 | 20 64 65 66 69 6e 69 74 | If the| definit|
|000002c0| 69 6f 6e 20 69 73 20 66 | 75 6c 6c 79 20 6f 6e 73 |ion is f|ully ons|
|000002d0| 63 72 65 65 6e 2c 20 69 | 74 20 69 73 20 6d 6f 76 |creen, i|t is mov|
|000002e0| 65 64 20 74 6f 20 74 68 | 65 20 74 6f 70 20 6f 66 |ed to th|e top of|
|000002f0| 20 74 68 65 0a 77 69 6e | 64 6f 77 2e 20 20 49 66 | the.win|dow. If|
|00000300| 20 69 74 20 69 73 20 70 | 61 72 74 6c 79 20 6f 66 | it is p|artly of|
|00000310| 66 73 63 72 65 65 6e 2c | 20 74 68 65 20 77 69 6e |fscreen,| the win|
|00000320| 64 6f 77 20 69 73 20 73 | 63 72 6f 6c 6c 65 64 20 |dow is s|crolled |
|00000330| 74 6f 20 67 65 74 20 74 | 68 65 0a 64 65 66 69 6e |to get t|he.defin|
|00000340| 69 74 69 6f 6e 20 28 6f | 72 20 61 73 20 6d 75 63 |ition (o|r as muc|
|00000350| 68 20 61 73 20 77 69 6c | 6c 20 66 69 74 29 20 6f |h as wil|l fit) o|
|00000360| 6e 73 63 72 65 65 6e 2c | 20 75 6e 6c 65 73 73 20 |nscreen,| unless |
|00000370| 70 6f 69 6e 74 20 69 73 | 20 69 6e 20 61 20 63 6f |point is| in a co|
|00000380| 6d 6d 65 6e 74 0a 77 68 | 69 63 68 20 69 73 20 61 |mment.wh|ich is a|
|00000390| 6c 73 6f 20 70 61 72 74 | 6c 79 20 6f 66 66 73 63 |lso part|ly offsc|
|000003a0| 72 65 65 6e 2c 20 69 6e | 20 77 68 69 63 68 20 63 |reen, in| which c|
|000003b0| 61 73 65 20 74 68 65 20 | 73 63 72 6f 6c 6c 69 6e |ase the |scrollin|
|000003c0| 67 20 61 74 74 65 6d 70 | 74 73 20 74 6f 20 67 65 |g attemp|ts to ge|
|000003d0| 74 0a 61 73 20 6d 75 63 | 68 20 6f 66 20 74 68 65 |t.as muc|h of the|
|000003e0| 20 63 6f 6d 6d 65 6e 74 | 20 6f 6e 73 63 72 65 65 | comment| onscree|
|000003f0| 6e 20 61 73 20 70 6f 73 | 73 69 62 6c 65 2e 0a 20 |n as pos|sible.. |
|00000400| 20 49 6e 69 74 69 61 6c | 6c 79 20 60 72 65 70 6f | Initial|ly `repo|
|00000410| 73 69 74 69 6f 6e 2d 77 | 69 6e 64 6f 77 27 20 61 |sition-w|indow' a|
|00000420| 74 74 65 6d 70 74 73 20 | 74 6f 20 6d 61 6b 65 20 |ttempts |to make |
|00000430| 62 6f 74 68 20 74 68 65 | 20 64 65 66 69 6e 69 74 |both the| definit|
|00000440| 69 6f 6e 20 61 6e 64 0a | 70 72 65 63 65 64 69 6e |ion and.|precedin|
|00000450| 67 20 63 6f 6d 6d 65 6e | 74 73 20 76 69 73 69 62 |g commen|ts visib|
|00000460| 6c 65 2e 20 20 46 75 72 | 74 68 65 72 20 69 6e 76 |le. Fur|ther inv|
|00000470| 6f 63 61 74 69 6f 6e 73 | 20 74 6f 67 67 6c 65 20 |ocations| toggle |
|00000480| 74 68 65 20 76 69 73 69 | 62 69 6c 69 74 79 20 6f |the visi|bility o|
|00000490| 66 0a 74 68 65 20 63 6f | 6d 6d 65 6e 74 20 6c 69 |f.the co|mment li|
|000004a0| 6e 65 73 2e 0a 20 20 49 | 66 20 41 52 47 20 69 73 |nes.. I|f ARG is|
|000004b0| 20 6e 6f 6e 2d 6e 69 6c | 2c 20 70 6f 69 6e 74 20 | non-nil|, point |
|000004c0| 6d 61 79 20 6d 6f 76 65 | 20 69 6e 20 6f 72 64 65 |may move| in orde|
|000004d0| 72 20 74 6f 20 6d 61 6b | 65 20 74 68 65 20 77 68 |r to mak|e the wh|
|000004e0| 6f 6c 65 20 64 65 66 75 | 6e 0a 76 69 73 69 62 6c |ole defu|n.visibl|
|000004f0| 65 20 28 69 66 20 6f 6e | 6c 79 20 70 61 72 74 20 |e (if on|ly part |
|00000500| 63 6f 75 6c 64 20 6f 74 | 68 65 72 77 69 73 65 20 |could ot|herwise |
|00000510| 62 65 20 6d 61 64 65 20 | 73 6f 29 2c 20 74 6f 20 |be made |so), to |
|00000520| 6d 61 6b 65 20 74 68 65 | 20 64 65 66 75 6e 20 6c |make the| defun l|
|00000530| 69 6e 65 0a 76 69 73 69 | 62 6c 65 20 28 69 66 20 |ine.visi|ble (if |
|00000540| 70 6f 69 6e 74 20 69 73 | 20 69 6e 20 63 6f 64 65 |point is| in code|
|00000550| 20 61 6e 64 20 69 74 20 | 63 6f 75 6c 64 20 6e 6f | and it |could no|
|00000560| 74 20 62 65 20 6d 61 64 | 65 20 73 6f 2c 20 6f 72 |t be mad|e so, or|
|00000570| 20 69 66 20 6f 6e 6c 79 | 0a 63 6f 6d 6d 65 6e 74 | if only|.comment|
|00000580| 73 2c 20 69 6e 63 6c 75 | 64 69 6e 67 20 74 68 65 |s, inclu|ding the|
|00000590| 20 66 69 72 73 74 20 63 | 6f 6d 6d 65 6e 74 20 6c | first c|omment l|
|000005a0| 69 6e 65 2c 20 61 72 65 | 20 76 69 73 69 62 6c 65 |ine, are| visible|
|000005b0| 29 2c 20 6f 72 20 74 6f | 20 6d 61 6b 65 20 74 68 |), or to| make th|
|000005c0| 65 0a 66 69 72 73 74 20 | 63 6f 6d 6d 65 6e 74 20 |e.first |comment |
|000005d0| 6c 69 6e 65 20 76 69 73 | 69 62 6c 65 20 28 69 66 |line vis|ible (if|
|000005e0| 20 70 6f 69 6e 74 20 69 | 73 20 69 6e 20 61 20 63 | point i|s in a c|
|000005f0| 6f 6d 6d 65 6e 74 29 2e | 1f 0a 28 64 65 66 61 6c |omment).|..(defal|
|00000600| 69 61 73 20 27 72 65 70 | 6f 73 69 74 69 6f 6e 2d |ias 'rep|osition-|
|00000610| 77 69 6e 64 6f 77 20 23 | 5b 28 26 6f 70 74 69 6f |window #|[(&optio|
|00000620| 6e 61 6c 20 61 72 67 29 | 20 22 60 18 c1 c2 20 21 |nal arg)| "`... !|
|00000630| c3 5a 1c c5 c6 20 60 5c | 22 1e 07 c8 c9 8a 6d 84 |.Z... `\|".....m.|
|00000640| 1a 00 ca 75 88 cb cc 21 | 88 cd ce cf d0 23 83 2a |...u...!|.....#.*|
|00000650| 00 d1 ca 21 88 60 29 08 | 5c 22 5d 1e 12 c9 8a cb |...!.`).|\"].....|
|00000660| ca 21 88 d3 ca 21 88 60 | 29 08 5c 22 1e 14 c5 08 |.!...!.`|).\"....|
|00000670| 8a cb ca 21 88 60 29 5c | 22 1e 15 0e 14 0e 07 58 |...!.`)\|"......X|
|00000680| 85 5c 5c 00 0e 07 0e 14 | 5a 5c 66 58 1e 16 0e 12 |.\\.....|Z\fX....|
|00000690| 0e 07 55 84 7a 00 0e 07 | 5c 66 55 83 9c 00 0e 12 |..U.z...|\fU.....|
|000006a0| 0e 07 56 83 9c 00 0e 16 | 83 9c 00 0e 17 83 93 00 |..V.....|........|
|000006b0| 0e 15 5c 66 54 56 83 93 | 00 cb 20 88 d3 20 88 d8 |..\fTV..|.. .. ..|
|000006c0| c8 21 82 34 01 d8 0e 14 | c8 5d 21 82 34 01 0e 14 |.!.4....|.]!.4...|
|000006d0| 0e 07 55 84 ba 00 0e 07 | c8 55 84 ba 00 0e 07 0e |..U.....|.U......|
|000006e0| 12 57 83 f5 00 0e 14 c8 | 57 83 f5 00 0e 07 5c 66 |.W......|W.....\f|
|000006f0| 55 83 d2 00 0e 17 83 cc | 00 cb 20 88 d3 20 88 d8 |U.......|.. .. ..|
|00000700| c8 21 82 34 01 0e 17 83 | ec 00 5c 66 0e 12 57 83 |.!.4....|..\f..W.|
|00000710| ec 00 0e 12 5b 79 88 c8 | 79 88 d8 c8 21 82 34 01 |....[y..|y...!.4.|
|00000720| d8 5c 66 0e 12 5e 21 82 | 34 01 0e 07 0e 15 5c 5c |.\f..^!.|4.....\\|
|00000730| cc 5c 5c 5c 66 56 83 15 | 01 0e 16 83 15 01 d8 c8 |.\\\fV..|........|
|00000740| 5c 66 0e 15 5a 54 5d 0e | 14 5d 21 82 34 01 0e 17 |\f..ZT].|.]!.4...|
|00000750| 83 2e 01 5c 66 0e 12 57 | 83 2e 01 0e 14 5b 79 88 |...\f..W|.....[y.|
|00000760| c8 79 88 d9 20 82 34 01 | d8 5c 66 0e 12 5e 21 2e |.y.. .4.|.\f..^!.|
|00000770| 07 87 22 20 5b 68 65 72 | 65 20 77 69 6e 64 6f 77 |.." [her|e window|
|00000780| 2d 68 65 69 67 68 74 20 | 73 65 6c 65 63 74 65 64 |-height |selected|
|00000790| 2d 77 69 6e 64 6f 77 20 | 32 20 68 74 20 72 65 70 |-window |2 ht rep|
|000007a0| 6f 73 2d 63 6f 75 6e 74 | 2d 73 63 72 65 65 6e 2d |os-count|-screen-|
|000007b0| 6c 69 6e 65 73 20 77 69 | 6e 64 6f 77 2d 73 74 61 |lines wi|ndow-sta|
|000007c0| 72 74 20 6c 69 6e 65 20 | 30 20 72 65 70 6f 73 2d |rt line |0 repos-|
|000007d0| 63 6f 75 6e 74 2d 73 63 | 72 65 65 6e 2d 6c 69 6e |count-sc|reen-lin|
|000007e0| 65 73 2d 73 69 67 6e 65 | 64 20 31 20 65 6e 64 2d |es-signe|d 1 end-|
|000007f0| 6f 66 2d 64 65 66 75 6e | 20 2d 31 20 72 65 2d 73 |of-defun| -1 re-s|
|00000800| 65 61 72 63 68 2d 66 6f | 72 77 61 72 64 20 22 5b |earch-fo|rward "[|
|00000810| 5e 20 09 5c 6e 5c 66 5d | 22 20 6e 69 6c 20 74 20 |^ .\n\f]|" nil t |
|00000820| 62 61 63 6b 77 61 72 64 | 2d 63 68 61 72 20 63 6f |backward|-char co|
|00000830| 6d 6d 65 6e 74 2d 68 65 | 69 67 68 74 20 62 65 67 |mment-he|ight beg|
|00000840| 69 6e 6e 69 6e 67 2d 6f | 66 2d 64 65 66 75 6e 20 |inning-o|f-defun |
|00000850| 64 65 66 75 6e 2d 68 65 | 69 67 68 74 20 64 65 66 |defun-he|ight def|
|00000860| 75 6e 2d 64 65 70 74 68 | 20 64 65 66 75 6e 2d 6c |un-depth| defun-l|
|00000870| 69 6e 65 2d 6f 6e 73 63 | 72 65 65 6e 2d 70 20 61 |ine-onsc|reen-p a|
|00000880| 72 67 20 72 65 63 65 6e | 74 65 72 20 72 65 70 6f |rg recen|ter repo|
|00000890| 73 69 74 69 6f 6e 2d 77 | 69 6e 64 6f 77 5d 20 36 |sition-w|indow] 6|
|000008a0| 20 28 23 24 20 2e 20 34 | 37 32 29 20 22 50 22 5d | (#$ . 4|72) "P"]|
|000008b0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 72 65 70 |).(defal|ias 'rep|
|000008c0| 6f 73 2d 63 6f 75 6e 74 | 2d 73 63 72 65 65 6e 2d |os-count|-screen-|
|000008d0| 6c 69 6e 65 73 20 23 5b | 28 73 74 61 72 74 20 65 |lines #[|(start e|
|000008e0| 6e 64 29 20 22 8a 8c 08 | 09 7d 88 65 62 88 c2 64 |nd) "...|.}.eb..d|
|000008f0| 65 5a 21 2a 87 22 20 5b | 73 74 61 72 74 20 65 6e |eZ!*." [|start en|
|00000900| 64 20 76 65 72 74 69 63 | 61 6c 2d 6d 6f 74 69 6f |d vertic|al-motio|
|00000910| 6e 5d 20 33 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |n] 3]).(|defalias|
|00000920| 20 27 72 65 70 6f 73 2d | 63 6f 75 6e 74 2d 73 63 | 'repos-|count-sc|
|00000930| 72 65 65 6e 2d 6c 69 6e | 65 73 2d 73 69 67 6e 65 |reen-lin|es-signe|
|00000940| 64 20 23 5b 28 73 74 61 | 72 74 20 65 6e 64 29 20 |d #[(sta|rt end) |
|00000950| 22 c0 09 5c 6e 5c 22 1b | 09 5c 6e 57 83 0f 00 0b |"..\n\".|.\nW....|
|00000960| 82 11 00 0b 5b 29 87 22 | 20 5b 72 65 70 6f 73 2d |....[)."| [repos-|
|00000970| 63 6f 75 6e 74 2d 73 63 | 72 65 65 6e 2d 6c 69 6e |count-sc|reen-lin|
|00000980| 65 73 20 73 74 61 72 74 | 20 65 6e 64 20 6c 69 6e |es start| end lin|
|00000990| 65 73 5d 20 33 5d 29 0a | |es] 3]).| |
+--------+-------------------------+-------------------------+--------+--------+